<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>使用v-bind指令-直接绑定data数据里的一个对象</title>
<!--引入Vue库-->
<script src="vue.js"></script>
<style>
.base {
  font-size: 20px;
  font-weight: bold;
 }
.active {
  color: blue;
  font-size: 24px;
 }
.text-danger {
  color: red;
  font-size: 32px;
 }
</style>
</head>
<body>	
<div id="main">
    <div v-bind:class="classObject">
        {{ info }}
    </div>
</div>
<script>
  var vm=new Vue({ 
      el: '#main', 
      data: {
          info:'请登录',
          classObject: {
              base:true,
              active: true,
              'text-danger': false
            }
          }
      })
</script>
</body>
</html>
